home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / AMOSList / AMOSLIST.0997 / 000344_amos-request@svcs1.digex.net_Sat Sep 27 17:56:50 1997.msg < prev    next >
Text File  |  1997-10-01  |  4KB  |  86 lines

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
  2.     by mail3.access.digex.net (8.8.5/8.8.5) with ESMTP id RAA15563
  3.     for <mcox@access.digex.net>; Sat, 27 Sep 1997 17:56:49 -0400 (EDT)
  4. Received: (from daemon@localhost)
  5.     by svcs1.digex.net (8.8.5/8.8.5) id PAA17089
  6.     for amos-out; Sat, 27 Sep 1997 15:00:21 -0400 (EDT)
  7. Received: from mail2.access.digex.net (mail2.access.digex.net [205.197.247.3])
  8.     by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id PAA17086
  9.     for <amos-list@svcs1.digex.net>; Sat, 27 Sep 1997 15:00:21 -0400 (EDT)
  10. Received: from mago.agonet.it (root@mago.agonet.it [195.32.124.10])
  11.     by mail2.access.digex.net (8.8.5/8.8.5) with ESMTP id PAA06106
  12.     for <amos-list@access.digex.net>; Sat, 27 Sep 1997 15:00:18 -0400 (EDT)
  13. Received: from agonet.it (ghizzo@p126070.agonet.it [195.32.126.70])
  14.     by mago.agonet.it (8.8.5/8.8.5) with SMTP id VAA22750;
  15.     Sat, 27 Sep 1997 21:02:35 +0200
  16. From: Pietro Ghizzoni <ghizzo@agonet.it>
  17. Reply-To: Pietro Ghizzoni <ghizzo@agonet.it>
  18. To: "Mr. Giark To You" <joehick@golden.net>,
  19.         Amos-List <amos-list@access.digex.net>
  20. Date: Sat, 27 Sep 1997 20:42:35 +0100
  21. Message-ID: <yam7209.1753.2014823272@mail.agonet.it>
  22. In-Reply-To: <yam7207.1739.4966912@huron.net>
  23. X-Mailer: YAM 1.3.4 [020] - Amiga Mailer by Marcel Beck
  24. Organization: Dairymen Soft
  25. Subject: Re: GUI kablooie
  26. MIME-Version: 1.0
  27. Content-Type: text/plain
  28. Status: O
  29. X-Status: 
  30.  
  31. On 25-Set-97, Mr. Giark To You wrote: Re: GUI kablooie
  32.  
  33.  
  34. >Now, I have a new problem. Using Tcp Read gives me far too much data at once
  35. >and in the wrong format as well. For IRC I really need a Tcp Read Line$
  36. >command that would only read from the port the next LINE, not # of
  37. characters.
  38. >I've sent the details to Pietro and I hope he will add this command. As it
  39. is,
  40. >not only does it give too much info, it seems to strip the CR-LF that
  41. >indicates the end of an IRC line, making it impossible to parse the IRC
  42. >commands properly.
  43.  
  44. Mmmmhhh.... probably your're using the command in the wrong way. If your
  45. BOT works using the TCP: device, it *must* works with the GUI Extension too.
  46.  
  47. It isn't a handicap the possibility to specify the # of bytes to
  48. download... if i remember correctly the maximum length of a IRC string is
  49. 256 chars (right?)... and so for example Tcp Read(1,Start(10),256) is the
  50. best choice.
  51.  
  52. When the IRC server will send you the string, you must simply read it:
  53.  
  54. A=Gui Wait
  55.  
  56.  
  57. IF A=-9 : Rem TCP/IP datas received
  58.  
  59.    IRC$=Peek$(Tcp Buffer,Tcp Code)
  60.  
  61. EndIf
  62.  
  63.  
  64. Tcp Code indicates the number of bytes received (i.e the string length). It
  65. isn't neccesary 256... in this case 256 is the maximum number of bytes to
  66. download... if only 100 bytes are available, only 100 bytes will be
  67. downloaded ;)
  68.  
  69. -- 
  70.  
  71.  
  72. Bye!
  73.  
  74.  
  75.                                      !!!
  76.                                      o o
  77.    +-----------------------------oOO-(_)-OOo----------------------------+
  78.    |                                                                    |
  79.    |  Pietro Ghizzoni - Dairymen Soft              __  /// Amiga 12OO   |
  80.    |     E-Mail:  ghizzo@agonet.it                 \\\/// 'O3O  5OMhz   |
  81.    |            Team AMIGA                          \/// 1OMB - CD4x    |
  82.    |                                                                    |
  83.    | Amos Professional Team Coordinator               AMIGA RULEZ!!     |
  84.    |                                                                    |
  85.    +--------------------------------------------------------------------+
  86.